<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/21
 * Time: 15:57
 */
header("Content-type:text/html;charset=utf-8");
echo "9editor_save.php";

var_dump($_POST);
//表单
//接收到标题，
//接收到内容
$fileName = $_POST['fileName'];
$title = $_POST['title'];
$content = $_POST['content'];


//放在什么地方
$fileFullName = __DIR__."/c/".$fileName;

$s = $title.PHP_EOL.$content;

file_put_contents($fileFullName,$s);
?>

